﻿using DotNetCore.CAP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cap.Subscriber;

public class Events : ICapSubscribe
{


    [CapSubscribe("Order.Created")]   //监听Order.Created事件
    public async Task OrderCreatedEventHand(string msg)
    {
        Console.WriteLine("--接收：" + msg);
    }

}
